package com.isoft.airportsystem.mapper.Flight;

import com.isoft.airportsystem.entity.flight.Aircraft;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AircraftMapper {
    // 查询所有机型
    List<Aircraft> selectAllAircrafts();

    // 根据机型代码查询
    Aircraft selectByCode(@Param("aircraftCode") String aircraftCode);

    // 根据条件查询机型
    List<Aircraft> selectAircraftsByCondition(Aircraft aircraft);

    // 分页查询机型
    List<Aircraft> selectAircraftPage(@Param("offset") int offset,
                                      @Param("limit") int limit,
                                      @Param("aircraft") Aircraft aircraft);

    // 统计机型数量
    int countAircrafts(Aircraft aircraft);
}